//
//  XFCustomSlider.h
//  FreeTime
//
//  Created by 王江华 on 16/9/19.
//  Copyright © 2016年 SRDZ.com. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "XFDraggableButton.h"

@protocol  XFCustomSliderDelegate;

@interface XFCustomSlider : UIView<XFDraggableButtonDelegate>

@property(strong,nonatomic)UIImageView *imageSliderBGGray;

@property (strong, nonatomic) UIImageView *imageSliderBGBlue;

@property (strong, nonatomic) XFDraggableButton   *buttonLeft;

@property (strong, nonatomic) XFDraggableButton  *buttonRight;
@property (assign, nonatomic) NSInteger valueMin;
@property (assign, nonatomic) NSInteger valueMax;
@property (assign, nonatomic) NSInteger valueMinCurrent;
@property (assign, nonatomic) NSInteger valueMaxCurrent;

@property (weak, nonatomic) id<XFCustomSliderDelegate> delegate;

@end

@protocol XFCustomSliderDelegate <NSObject>

-(void)customSliderValueChanged:(id)sender;

@end